package com.youku.utils
{
   import cmodule.ccYouku.CLibInit;
   import flash.utils.ByteArray;
   import com.dynamicflash.util.Base64;
   
   public class PlayListUtil extends Object
   {
      
      public function PlayListUtil(param1:MyClass) {
         super();
         this._cloader = new CLibInit();
         this._lib = this._cloader.init();
      }
      
      private static var _instance:PlayListUtil;
      
      public static function getInstance() : PlayListUtil {
         if(_instance == null)
         {
            _instance = new PlayListUtil(new MyClass());
         }
         return _instance as PlayListUtil;
      }
      
      private var _cloader:CLibInit;
      
      private var _lib:Object;
      
      public function setSize(param1:String) : String {
         var _loc2_:ByteArray = this._lib.setSize(param1) as ByteArray;
         return encodeURIComponent(Base64.encodeByteArray(_loc2_));
      }
      
      public function getSize(param1:String) : String {
         var _loc2_:ByteArray = Base64.decodeToByteArray(param1);
         return this._lib.getSize(_loc2_,_loc2_.length);
      }
      
      public function changeSize(param1:String) : String {
         return this._lib.changeSize(param1) as String;
      }
      
      public function decode(param1:ByteArray) : ByteArray {
         return this._lib.decode(param1,param1.length) as ByteArray;
      }
   }
}
class MyClass extends Object
{
   
   function MyClass() {
      super();
   }
}
